package com.woniuxy.reservation.client.takenumclient;


import com.woniuxy.reservation.client.param.InsertTakeNumParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

/**
* name是项目名，contextId是client的名字
*/
@FeignClient(contextId = "takeNumManageClient",name="reservation")
public interface TakeNumManageClient {
    @PostMapping("/insertTakeNum")
    public Result insertTakeNum(@RequestBody InsertTakeNumParam param);
    @PutMapping("/updateTakeNumState")
    public Result updateTakeNumState(@RequestParam("storeId") Integer storeId,@RequestParam("id")Integer id,@RequestParam("numState")String numState);
}
